<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <h3>单文件上传</h3>
    <!-- 注意：enctype  type="file" -->
    <!-- action="/demo/upload" method="POST" name="avitar" 都要与服务端的配置吻合 -->
    <form action="/file/upload" method="POST" enctype="multipart/form-data">
      <input name="username" type="text" /><br />
      <input type="file" name="avitar" /><br />
      <input type="submit" value="单个上传" />
    </form>

    <h3>多文件上传</h3>
    <!-- 注意：enctype  type="file" -->
    <!-- action="/file/upload" method="POST" name="avitar" 都要与服务端的配置吻合 -->
    <form action="/file/upload" method="post" enctype="multipart/form-data">
      <input name="username" type="text" /><br />
      <input type="file" name="avitar" multiple /><br />
      <input type="file" name="avitar" multiple /><br />
      <br />
      <input type="submit" value="多个上传" />
    </form>

  </body>
</html>
